package com.ai.nsa.utils.pool;

import org.apache.commons.pool2.PooledObjectFactory;

import java.io.Serializable;

/**
 * 连接工厂接口
 *
 * @author Feng Chen 2017/6/7.
 */
public interface ConnectionFactory<T> extends PooledObjectFactory<T>, Serializable {

    /**
     * 创建连接
     *
     * @return
     * @throws Exception
     */
    T createConnection() throws Exception;

}
